package com.wzdigit.wms.basic.mapper.core.transfer;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzdigit.framework.orm.mybatis.MyBatisRepository;
import com.wzdigit.wms.basic.domain.dtos.outbound.PicktaskDto;
import com.wzdigit.wms.basic.domain.transfer.PicktaskHeader;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 拣货任务表头 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2021-02-25
 */
@MyBatisRepository
public interface PicktaskHeaderMapper extends BaseMapper<PicktaskHeader> {

    List<PicktaskDto> getMainAndDtlInfo(@Param("filter") String filter,
                                        @Param("loginName") String loginName,
                                        @Param("allowStatusList") List<Integer> allowStatusList,
                                        @Param("picktaskHeaderId") Integer picktaskHeaderId);

    List<PicktaskHeader> getHeaderInfoOnDtl(@Param("loginName") String loginName,
    		@Param("picktaskHeaderId") Integer picktaskHeaderId, 
    		@Param("picktastStatusList") List<Integer> picktastStatusList);
    
    int updateStatusByBetweenStatusAndGdnDtlId(@Param("status")Integer status, @Param("modifyUser")String modifyUser, 
    		@Param("gdnDtlId")Integer gdnDtlId, @Param("leStatus")Integer leStatus, @Param("geStatus")Integer geStatus);

    List<PicktaskDto> selectHeaderList(@Param("filter") String filter,@Param("loginName") String loginName,@Param("pickStatus") List<Integer> pickStatus);
}
